How to: Calculate the average for each column in a query.
Solution:
Click the 'Queries' tab in the Database window, click 'New', and select 'Design View' from the list box. Select the 'View' menu and select 'Totals'. Select 'Avg' from the 'Totals' drop-down list.
1) If the Database window is not active, activate the Database window.
2) Click the 'Queries' tab in the Database window.
Queries tab
3) Click 'New'. (The New Query dialog box appears.)
4) Select 'Design View' in the 'New Query' list box.
5) Click 'OK'. (The Show Table dialog box appears.)
6) Select the table to be used in the query.
7) Click 'Add'. (The table appears behind the dialog box.)
8) Click 'Close'. (The Query design view appears.)
9) To add fields to the query:
a) Select a field from a table's field list box in the top half of the Query Design window.
b) Drag the field to the desired column of the design grid in the bottom half of the Query Design window.
Design grid
c) Release the mouse button. (The field name appears in the Field row, and its table appears in the Table row.)
Field row and Table row
d) Repeat steps 9)a) through 9)c) for each field to be added to the query.
NOTE: Fields can also be added to the query by selecting a field from the drop-down list in the 'Field' row of the design grid in the bottom half of the Query Design window.
Design grid
10) Select the 'View' menu and select 'Totals'. (The Totals row appears in the query grid.)
Totals row
11) Click in the 'Totals' cell of the desired field. (A down arrow appears.)
12) Click down arrow. (A drop-down list appears.)
13) Select 'Avg' from the 'Totals' drop-down list.
14) Repeat steps 11) through 13) for each column in the query.
15) Select the 'File' menu and select 'Save' to save the query.
16) Select the 'Query' menu and select 'Run' to select the specified records.